/*
 * @Author: 周海 zhouhaib@yonyou.com
 * @Date: 2022-12-17 11:43:06
 * @LastEditors: 周海 zhouhaib@yonyou.com
 * @LastEditTime: 2022-12-17 11:48:46
 */
import { SysUserOnlineDomain } from '@/type.d/monitor/online'
import request from '@/utils/request'

// 查询在线用户列表
export function listOnline(query: SysUserOnlineDomain) {
  return request('/monitor/online/list',{
    method: 'get',
    params: query
  })
}

// 强退用户
export function forceLogout(tokenId: string) {
  return request('/monitor/online/' + tokenId,{
    method: 'delete'
  })
}
